lucky_num = 30
guess_num = -1
guess_count = 0
while guess_count < 3:

    guess_num = int(input("Input guess num:"))

    if guess_num < lucky_num:
        print("smaller")
    elif guess_num > lucky_num:
        print("bigger")
    else:
        print("Bingo")
        break
    guess_count += 1

else:
    print("Too many retry!")
